package com.example.springboot.transaction.bean.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot.transaction.bean.entity.BEntity;
import com.example.springboot.transaction.bean.mapper.BMapper;
import com.example.springboot.transaction.bean.service.BService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: luojm
 * @create: 2020-12-29 15:55:50
 */
@Service
public class BServiceImpl extends ServiceImpl<BMapper, BEntity> implements BService {
    @Override
    @Transactional
    public void testB() {
        BEntity bEntity = new BEntity();
        bEntity.setTB1("testB");
        bEntity.setTB2("testB");
        save(bEntity);
        int i = 1/0;
    }
}
